package com.geniusk.system.service.impl;

import com.geniusk.system.model.mapper.AppMapper;
import com.geniusk.system.model.pojo.App;
import com.geniusk.system.service.AppService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AppServiceImpl implements AppService {

    @Autowired
    private AppMapper appMapper;

    @Override
    public String selectLatestAppUrl() {
        return appMapper.selectLatestAppUrl();
    }

    @Override
    public String selectLatestAppVersion() {
        return appMapper.selectLatestAppVersion();
    }

    @Override
    public List<String> selectLatestAppUpdateInfo(String oldVersion) {
        return appMapper.selectLatestAppUpdateInfo(oldVersion);
    }

    @Override
    public App selectAppById(Long appId) {
        return appMapper.selectAppById(appId);
    }

    @Override
    public List<App> selectAppByPage(App app) {
        return appMapper.selectAppByPage(app);
    }

    @Override
    public int insertApp(App app) {
        return appMapper.insertApp(app);
    }

    @Override
    public int updateApp(App app) {
        return appMapper.updateApp(app);
    }

    @Override
    public int deleteAppByIds(Long[] ids) {
        return appMapper.deleteAppByIds(ids);
    }
}
